<?php defined('APP_PATH') or exit('Access Denied');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录日志</title>
<link rel="stylesheet" type="text/css" href="vonuo/static/css/vonuo.css">
<script type="text/javascript" src="vonuo/static/js/jquery.min.js"></script>
<script type="text/javascript" src="vonuo/static/js/tablecolor.js"></script>
</head>

<body>
<div class="gs_wraper gs_p_l0">
	<div class="tab_box">
		<table width="100%" style="margin-top:10px;" border="0" cellpadding="0" cellspacing="0"  class="common_table">
			<tr>
				<th width="70"><input type="checkbox" onclick="$('.all_check').attr('checked',$(this).attr('checked'))" class="all_check" /><label>编号</label></th>
				<th width="100">管理员账号</th><th width="100">管理员姓名</th><th width="100">登录IP</th><th width="100">登录时间</th>
			</tr>
			<?php foreach($logs as $row){?>
			<tr>
				<td><input name="id[]" type="checkbox" value="<?php echo $row['id'];?>" class="all_check" /><label><?php echo $row['id'];?></label></td>
				<td><?php echo $row['admin']['code'];?></td><td><?php echo $row['admin']['name'];?></td>
				<td><?php echo $row['ip'];?></td><td><?php echo date('Y-m-d H:i:s',$row['time']);?></td>
			</tr>
			<?php }?>
			<tr class="bottom">
				<td colspan="5" align="center" valign="middle">
				<?php if($pager){?>
					<span class="txt_color">每页<?php echo $pager['page_size'];?>条/共<?php echo $pager['total_count'];?>条记录</span>
					<span class="txt_color">当前<?php echo $pager['current_page'];?>/<?php echo $pager['total_page'];?>页</span>
					<?php if($pager['current_page']!=$pager['first_page']){?><a href="<?php echo spUrl('site','logs',array('page'=>$pager['first_page']));?>">首页</a><?php }else{?><a href="javascript:;">首页</a><?php }?>
					<a href="<?php echo spUrl('site','logs',array('page'=>$pager['prev_page']));?>">上一页</a>
					<a href="<?php echo spUrl('site','logs',array('page'=>$pager['next_page']));?>">下一页</a>
					<?php if($pager['current_page']!=$pager['last_page']){?><a href="<?php echo spUrl('site','logs',array('page'=>$pager['last_page']));?>">末页</a><?php }else{?><a href="javascript:;">末页</a><?php }?>
				<?php }?>
				</td>
			</tr>
  		</table>
	</div>
</div>
</body>
</html>